package UI;

import java.awt.FileDialog;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class ActionButtonListener implements ActionListener {
	private Frame parent;

	public ActionButtonListener(Frame parentFrame) {
		parent = parentFrame;
	}

	public void actionPerformed(ActionEvent e) {
		FileDialog fd = new FileDialog(parent, "Save file", FileDialog.SAVE);
		fd.setVisible(true);
		System.out.println(fd.getDirectory() + "/" + fd.getFile());
	}	
}
